var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function (req, res, next) {
    if (req.query.id == 1) {
        res.send({
            code: 200, message: 'success', data: {
                component: "/system/menu/index",
                isKeepAlive: 0,
                icon: 'Tools',
                menuName: "菜单管理",
                menuSort: 1,
                menuType: 2,
                menuVisible: 1,
                parentId: 1,
                path: "/system/menu/index",
                permission: "system:menu:list"
            }
        })
    } else {
        res.send({
            code: 200, message: 'success', data: {
                component: "/system/role/index",
                isKeepAlive: 0,
                icon: 'User',
                menuName: "角色管理",
                menuSort: 1,
                menuType: 2,
                menuVisible: 1,
                parentId: 1,
                path: "/system/role/index",
                permission: "system:role:list"
            }
        })
    }


});

module.exports = router;
